﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedBackList.aspx.cs" Inherits="Manager_FeedBackList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .x-grid3-row-body .expander
        {
            padding-left: 30px;
            padding-top: 5px;
            padding-bottom: 5px;
        }
        .x-grid3-row-body .expander p
        {
            padding-left: 30px;
            padding-top: 5px;
            padding-bottom: 5px;
        }
        .x-grid3-row-body .expander strong
        {
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AjaxLoadingType="mask" AutoSizePanelID="gridList" />
    <ext:Grid ID="gridList" runat="server" AllowPaging="true" PageSize="25" ForceFitAllTime="true"
        EmptyText="暂时没有相关数据!" RowNumberWidth="40px" DataKeyNames="fId" ShowBorder="false"
        EnableRowNumber="true" IsDatabasePaging="true" AutoScroll="true" ShowHeader="false"
        EnableCheckBoxSelect="true" OnRowDataBound="gridDataList_RowDataBound" EnableRowNumberPaging="true"
        OnRowCommand="gridList_RowCommand" OnPageIndexChange="gridList_PageIndexChange">
        <Columns>
            <ext:TemplateField ID="tfExpander" runat="server" RenderAsRowExpander="true">
                <ItemTemplate>
                    <div class="expander">
                        <p>
                            <strong>电子邮件：</strong><%# Eval("fEmail")%></p>
                        <p>
                            <strong>QQ：</strong><%# Eval("fQQ")%></p>
                        <p>
                            <strong>内容：</strong><%# Eval("fNotes")%></p>
                        <p>
                            <strong>回复内容：</strong></p>
                    </div>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField ID="BoundField3" runat="server" DataField="fTitle" HeaderText="留言主题" />
            <ext:BoundField ID="BoundField1" runat="server" DataField="fUser" HeaderText="留言用户" />
            <ext:BoundField ID="BoundField2" runat="server" DataField="fTel" HeaderText="联系方式" />
            <ext:CheckBoxField ID="cboxAStatus" runat="server" HeaderText="是否回复" DataField="fIsReply"
                Width="40" TextAlign="center" />
            <ext:BoundField ID="bfAddTime" runat="server" HeaderText="留言时间" DataField="fAddTime"
                Width="120" />
            <ext:LinkButtonField ID="lbtnfModify" runat="server" CommandName="ProdModify" ToolTip="回复"
                Icon="hourglassGo" Width="30" TextAlign="center" />
            <ext:LinkButtonField ID="lbtnfDelete" runat="server" CommandName="Delete" ToolTip="删除当前行数据"
                Icon="delete" ConfirmText="是否确定删除当前行数据？" Width="30" TextAlign="center" />
        </Columns>
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:ToolbarText ID="ToolbarText1" runat="server" Text="留言反馈列表">
                    </ext:ToolbarText>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                    </ext:ToolbarFill>
                    <ext:Label ID="lblSearchTitle" runat="server" Text="快速检索">
                    </ext:Label>
                    <ext:DropDownList ID="ddlSearchClass" runat="server" EnableSimulateTree="true">
                        <ext:ListItem Text="全部" Value="-1" />
                        <ext:ListItem Text="未回复" Value="0" />
                        <ext:ListItem Text="已回复" Value="1" />
                    </ext:DropDownList>
                    <ext:TwinTriggerBox ID="ttboxKeywords" ShowLabel="false" OnTrigger1Click="ttboxKeywords_Trigger1Click"
                        OnTrigger2Click="ttboxKeywords_Trigger2Click" Trigger1Icon="Clear" EmptyText="搜索关键词"
                        Trigger2Icon="Search" runat="server">
                    </ext:TwinTriggerBox>
                    <ext:ToolbarSeparator ID="ToolbarSeparator" runat="server">
                    </ext:ToolbarSeparator>
                    <ext:Button ID="btnSelectDelete" runat="server" Text="删除选中" Icon="delete" OnClick="btnSelectDelete_Click"
                        ConfirmText="是否确定删除？">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <PageItems>
            <ext:Button ID="btnRefresh" runat="server" Icon="arrowrefresh" OnClick="btnRefresh_Click">
            </ext:Button>
            <ext:ToolbarFill ID="ToolbarFill3" runat="server">
            </ext:ToolbarFill>
            <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
            </ext:ToolbarSeparator>
            <ext:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数：">
            </ext:ToolbarText>
            <ext:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
                OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                <ext:ListItem Text="15" Value="15" />
                <ext:ListItem Text="20" Value="20" />
                <ext:ListItem Text="25" Value="25" Selected="true" />
            </ext:DropDownList>
        </PageItems>
    </ext:Grid>
    <ext:Window ID="winForm" runat="server" Title="意见反馈回复" Popup="false" EnableCollapse="true"
        IsModal="true" Width="600" CloseAction="hideRefresh">
        <Items>
            <ext:SimpleForm ID="sfObject" runat="server" LabelAlign="right" LabelWidth="80px"
                ShowHeader="false">
                <Items>
                    <ext:HiddenField ID="hfFId" runat="server">
                    </ext:HiddenField>
                    <ext:TextBox ID="txtTitle" runat="server" Readonly="true" Label="主题">
                    </ext:TextBox>
                    <ext:HtmlEditor ID="heContent" runat="server" Label="回复内容">
                    </ext:HtmlEditor>
                </Items>
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server" Position="footer">
                        <Items>
                            <ext:Button ID="btnSubmit" runat="server" Text="确定回复" Icon="systemsave" ValidateForms="sfObject"
                                OnClick="btnSubmit_Click">
                            </ext:Button>
                            <ext:Button ID="btnReset" runat="server" Text="重 置" Icon="reload">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
            </ext:SimpleForm>
        </Items>
        <
    </ext:Window>
    </form>
</body>
</html>
